package com.henu.engineer.dao.mapper;

import com.henu.engineer.dao.entity.Teacher;
import com.henu.engineer.dao.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author noexcept
 * @date 2021/7/26 6:41
 */
@Mapper
@Repository
public interface TeacherXmlMapper extends UserXmlMapper {

    /**
     * 添加老师
     * @param teacher
     * @return
     * 同时不要忘记在User表中添加记录
     * @see UserXmlMapper#insertUser(User)
     */
    boolean insertTeacher(Teacher teacher);

    boolean updateContact(String id, String contact);
}
